<?php include BASE_PATH.'install/step/header.tpl.php';?>
	<div class="container">
		<div id="bar" class="progress progress-striped active" style="margin-top: 100px;">
			<div class="bar" style="width: 50%;"></div>
		</div>
		<div class="well fade in">
			<div class="tabbable tabs-left">
			  <ul class="nav nav-tabs">
				<?php for($i=1; $i<=count($steps); $i++){ ?>
					<li <?php if($step==$i) { ?> class="active" <?php } ?> ><a data-toggle="tab"><?php echo $steps[$i]; ?></a></li>
                <?php } ?>
              </ul>
			  <div class="tab-content">
				<table class="table table-bordered">
				  <thead>
					<tr>
					  <th>目录文件</th>
					  <th>所需状态</th>
					  <th>当前状态</th>
					</tr>
				  </thead>
				  <tbody>
					<?php foreach ($filesmod as $filemod) {?>
					  <tr>
						<td><?php echo $filemod['file']?></td>
						<td><span><i class="icon-ok"></i>&nbsp;可写</span></td>
						<td><?php echo $filemod['is_writable'] ? '<span><i class="icon-ok"></i>&nbsp;可写</span>' : '<font class="red"><i class="icon-remove"></i>&nbsp;不可写</font>'?></td>
					  </tr>
					<?php } ?>
				  </tbody>
				</table>
			  </div>
		</div>
		<?php if($no_writablefile == 0) { ?>
		<div class="row-fluid">
			<div class="span2">
				<a class="btn btn-large btn-block btn-info" href="javascript:history.go(-1);">上一步</a>
			</div>
			<div class="span2 offset8">
				<a class="btn btn-large btn-block btn-info"  href="javascript:void(0);"  onClick="$('#install').submit();return false;">下一步</a>
			</div>
		</div>
		<?php }else{ ?>
		<div class="alert alert-error">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <strong>糟糕!</strong> 存在不可写目录或者文件，无法继续安装！
        </div>
		<?php }?>
		<form id="install" action="install.php?" method="post">
			<input type="hidden" name="step" value="4">
			<input type="hidden" id="selectmod" name="selectmod" value="<?php echo $selectmod?>" />
		</form>
	</div>
	<script src="../static/js/jquery.js"></script>
</body>
</html>